<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var str = '1999-12-30';
			var reg = /^(19|20)\d\d([-./])(0[1-9]|1[0-2])\2(0[1-9]|[12][0-9]|3[0-1])/;
		</script>
	</body>
</html>
